package member.order.model;

import m.common.model.FieldMeta;
import m.common.model.LinkTableMeta;
import m.common.model.Model;
import m.common.model.TableMeta;
import m.common.model.type.FieldType;
import member.base.model.StoreInfo;

@TableMeta(name="o_order_collect",description="订单汇总表")
public class OrderCollect extends Model {
    @LinkTableMeta(name="input_store_oid",table= StoreInfo.class,description="录入店铺")
    private StoreInfo inputStore;
    @FieldMeta(name="account_date",type= FieldType.STRING,length = 10,description="订单账期")
    private String accountDate;
    @FieldMeta(name = "order_num",type = FieldType.INT,description = "订单数量")
    private Integer orderNum;
    @FieldMeta(name = "order_amount",type = FieldType.DOUBLE,description = "订单金额")
    private Double orderAmount;
    @FieldMeta(name = "preferential_amount",type = FieldType.DOUBLE,defaultValue = "0",description = "优惠金额")
    private Double preferentialAmount;
    @FieldMeta(name = "member_day_amount",type = FieldType.DOUBLE,defaultValue = "0",description = "会员日金额")
    private Double memberDayAmount;
    @FieldMeta(name = "recharge_num",type = FieldType.INT,description = "充值数量")
    private Integer rechargeNum;
    @FieldMeta(name = "recharge_amount",type = FieldType.DOUBLE,description = "充值金额")
    private Double rechargeAmount;

    public Double getPreferentialAmount() {
        return preferentialAmount;
    }

    public void setPreferentialAmount(Double preferentialAmount) {
        this.preferentialAmount = preferentialAmount;
    }

    public Double getMemberDayAmount() {
        return memberDayAmount;
    }

    public void setMemberDayAmount(Double memberDayAmount) {
        this.memberDayAmount = memberDayAmount;
    }

    public StoreInfo getInputStore() {
        return inputStore;
    }

    public void setInputStore(StoreInfo inputStore) {
        this.inputStore = inputStore;
    }

    public String getAccountDate() {
        return accountDate;
    }

    public void setAccountDate(String accountDate) {
        this.accountDate = accountDate;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Double getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(Double orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Integer getRechargeNum() {
        return rechargeNum;
    }

    public void setRechargeNum(Integer rechargeNum) {
        this.rechargeNum = rechargeNum;
    }

    public Double getRechargeAmount() {
        return rechargeAmount;
    }

    public void setRechargeAmount(Double rechargeAmount) {
        this.rechargeAmount = rechargeAmount;
    }
}
